// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import Client from '@api/access/api/RecordDashboardApi'

import RankClass from '@api/access/model/RecordAddressRankReq'

const CLIENT = CORE.grpcCLIENT(Client)

// ============================== 导出远程接口 ============================== //

export default {
  // —————————————————————————————— 单项 —————————————————————————————— //

  async getRank(param, TIP = '查询累计轨迹') {
    const DTO = CORE.grpcDTO(RankClass, param)
    const resp = await CORE.grpc(TIP, CLIENT, 'recordAddressRank', DTO)
    return resp.list || []
  },
}
